<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <script>
        // 1.form把伪数组转化为数组
        function add(){
            console.log(arguments);
              //es5转化成数组
            // let arr = [].slice.call(arguments);
            // console.log(arr);
            //es6转化 
            let arr = Array.from(arguments)
            console.log(arr);
    
        }
        // add(1,2,3,4)
     //2.of()将一组值转换成数组 ，将任意数据类型转换到数组中
    //  let arrs = Array.of(1,2,3,["嘎嘎嘎"],{name:"张三"});
    //  console.log(arrs);

    		//3.copywithin()
//		从3位置后面所有的值,替换从0位置所有的值
        let arr = [1,2,3,4,5,6,7];
    //    let newArr =    arr.copyWithin(3,6);
        // 4567567   1456767   1237567   
        // console.log(newArr);
//	4.find()查找元素,findIndex()查找索引
        // let x =   arr.find(item=> item>5)
        // let x =   arr.findIndex(item=> item>5)
        // console.log(x);

        
    </script>
</body>
</html>